package com.meizi.daily.entity;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;


/**
 * @author meizi
 * @email enjoymeizi@gmail.com
 * @date 2020-05-26 17:24:23
 */
@Data
@Table(name = "t_category")
public class Category implements Serializable {
	private static final long serialVersionUID = 1L;

    @Id
    private Integer id;

	    //名称
    @Column(name = "name")
    private String name;

	    //等级
    @Column(name = "level")
    private String level;

	    //父节点id
    @Column(name = "p_id")
    private Integer pId;

	    //描述
    @Column(name = "description")
    private String description;

	    //创建时间
    @Column(name = "create_time")
    private Date createTime;

	    //修改时间
    @Column(name = "modift_time")
    private Date modiftTime;


}
